import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import { pinia } from './store'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn' 
import 'element-plus/dist/index.css'
import router from './router'
import axios from 'axios'

const app = createApp(App)
// 创建一个axios实例并配置它  
const axiosInstance = axios.create({  
  baseURL: 'https://jsonplaceholder.typicode.com/todos/',  
  // 其他配置项...  
})
// 注入到全局
app.provide('axios', axiosInstance);  
app.use(pinia)
app.use(router)
app.use(ElementPlus, { locale: zhCn, size: 'small', zIndex: 3000 })
app.mount('#app')
